import { createApp } from 'vue'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

import '@/styles/index.scss'

import App from './App.vue'

import router from '@/router'

import { createPinia } from 'pinia'
import { registerStore } from '@/stores'


const app = createApp(App)
app.component('font-awesome-icon', FontAwesomeIcon)

app.use(router)

app.use(ElementPlus, {
  locale: zhCn,
})

const pinia = createPinia()
app.use(pinia)
registerStore() // 注册Store

app.mount('#app')
